<template>
    <div>
      <MyHeader></MyHeader>
      <MyGoods :list="list"></MyGoods>
      <MyFooter :list="list"></MyFooter>
    </div>
  </template>
  
  <script>
  import MyHeader from '@/components/gwc/MyHeader.vue'
  import MyGoods from '@/components/gwc/MyGoods.vue'
  import MyFooter from '@/components/gwc/MyFooter.vue'
  export default {
    components: {
      MyHeader,
      MyGoods,
      MyFooter
    },
    data() {
      return {
       list:[]
      }
    },
    async created() {
    const {data:{list:res}} = await this.$axios({
      url: "/api/cart"
    })
    console.log(res)
    this.list=res
    }
  }
  </script>
  
  <style>
  
  </style>